import 'package:json_annotation/json_annotation.dart';

part 'login_info.g.dart';

@JsonSerializable()
class LoginInfo {
  String? access_token;
  int? expires_in;
  String? jti;
  String? refresh_token;
  String? scope;
  String? token_type;
  int? userId;
  String? userName;
  LoginInfo(this.access_token, this.expires_in, this.jti, this.refresh_token,
      this.scope, this.token_type, this.userId, this.userName);
  factory LoginInfo.fromJson(Map<String, dynamic> json) =>
      _$LoginInfoFromJson(json);
  Map<String, dynamic> toJson() => _$LoginInfoToJson(this);
}
